package edu.msg.jthr.backend.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "RECOMMENDEDCANDIDATE")
public class RecommendedCandidate extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@ManyToOne
	@JoinColumn(name = "JOB_ID")
	private Job job;
	@ManyToOne
	@JoinColumn(name = "CANDIDATE_ID")
	private Candidate candidate;

	public RecommendedCandidate() {
	}

	public RecommendedCandidate(Job job, Candidate candidate) {
		this.job = job;
		this.candidate = candidate;
	}

	public RecommendedCandidate(Long id, String uuid, Job job,
			Candidate candidate) {
		super(id, uuid);
		this.job = job;
		this.candidate = candidate;
	}

	public Job getJob() {
		return job;
	}

	public void setJob(Job job) {
		this.job = job;
	}

	public Candidate getCandidate() {
		return candidate;
	}

	public void setCandidate(Candidate candidate) {
		this.candidate = candidate;
	}

}
